package actionspeedymodelmysql

import (
	"gorm.io/gorm"
	"time"
)

// ActionObserveLotteryConditionsSecure 抽奖活动保底散件
type ActionObserveLotteryConditionsSecure struct {
	Id             int64          `gorm:"primaryKey;autoIncrement;comment:id" json:"id"`
	IsGiveCP       int64          `json:"isGiveCP" gorm:"column:is_give_cp;type:bigint;default:0;not null;comment:是否赠送CP"`           //是否赠送CP
	ExpireTimeHour int64          `json:"expireTimeHour" gorm:"column:expire_time_hour;type:bigint;default:0;not null;comment:活动id"` // 过期时间，小时，时效性的取时间
	Quality        int64          `json:"quality" gorm:"column:quality;type:int;default:0;not null;comment:品质"`                      // 0,S级别，1:A品质;2:B品质
	ElementNos     string         `json:"elementNos" gorm:"column:element_nos;type:varchar(256);not null;default:'';comment:活动名称"`   // 活动名称
	CreatedUserId  int64          `json:"createdUserId" gorm:"column:created_user_id;type:bigint;default:0;not null;comment:创建人id"`  // 创建人id
	CreatedAt      time.Time      `json:"created_at" gorm:"column:created_at;type:datetime"`
	UpdatedAt      time.Time      `json:"updated_at" gorm:"column:updated_at;type:datetime"`
	DeletedAt      gorm.DeletedAt `gorm:"index;type:datetime" json:"-"`
}
